#!/usr/bin/python  
#-*- coding:utf-8 -*-  
############################  
#File Name: testb64.py
#Author: Timy.Huang 
#Mail: timy.huang@foxmail.com  
#Created Time: 2017-06-03 23:58:47
############################  

import base64
a = "this is string"
b = base64.b64encode( a )
print b
print base64.b64decode( b )
